<#import "/spring.ftl" as spring />
<#include "../../consts.ftl">
<#global authweb=JspTaglibs["/WEB-INF/tld/auth.tld"]>
<#assign first = true>
<#assign sitemgr = false>
<#assign authmgr = false>
<#assign personmgr = false>
<#assign sysmgr = false>
<@authweb.auth url="/admin/sitemgr/index.htm">
 <#assign sitemgr = true>
</@authweb.auth>
<@authweb.auth url="/admin/authmgr/index.htm">
  <#assign authmgr = true>
</@authweb.auth>
<@authweb.auth url="/admin/personmgr/index.htm">
  <#assign personmgr = true>
</@authweb.auth>
<@authweb.auth url="/admin/sysmgr/index.htm">
  <#assign sysmgr = true>
</@authweb.auth>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 
<title></title>
<link href="${skin}/css/style.css" rel="stylesheet" type="text/css">
<link href="${skin}/css/menu_tab.css" rel="stylesheet" type="text/css">
<link href="${skin}/css/menu.css" rel="stylesheet" type="text/css">
<script src="${jturl}/js/common.js"></script>
<script src="${jturl}/js/page_init.js"></script>
<style>
body{
background-image: url(${skin}/images/menu_bg.gif);
}
</style>
<script>
var currSelectTab = "tab_person";
function setCurrSelectTab(tabID){
	var lastSelect = currSelectTab;
	top.mainFrame.location.href = "${ctx}/page/admin/main/welcome.jsp";
	
	if(tabID==currSelectTab){
		return;
	}else{
		document.getElementById(currSelectTab).className="tab-inactive";
		document.getElementById(tabID).className="tab-current";
	}
	currSelectTab = tabID;
}
</script>
</head>

<body>
<table width="100%" border="0" background="${skin}/images/bg_topnav.gif" cellpadding="0" cellspacing="0">
	<tr>
		<td width="20">&nbsp;</td>
		<td height="29" valign="bottom" align="left" id="topnavmain">
		<table  border="0" cellpadding="0" cellspacing="0">
			<tr align="center">
<#if sitemgr=true>
	<#assign tabcls="tab-inactive"> 
	<#if first=true><#assign first = false><#assign tabcls="tab-current"><script>currSelectTab="tab_site";</script></#if>
	<td width="100" class="${tabcls}" id="tab_site">
	  <img src="${skin}/images/icon_top01.gif"  align="absmiddle"> 
	  <a href="#" onClick="setCurrSelectTab('tab_site');top.menuFrame.loadMenu('site')">站点管理 </a> 
	</td>
</#if>
<#if authmgr=true>
	<#assign tabcls="tab-inactive"> 
	<#if first=true><#assign first = false><#assign tabcls="tab-current"><script>currSelectTab="tab_auth";</script></#if>
	<td width="130" class="${tabcls}" id="tab_auth">
    	<img src="${skin}/icon/question.gif"  align="absmiddle"> 
 		<a href="#" onClick="setCurrSelectTab('tab_auth');top.menuFrame.loadMenu('auth')">用户权限管理</a> 
    </td>
</#if>
<#if personmgr=true>
	<#assign tabcls="tab-inactive"> 
	<#if first=true><#assign first = false><#assign tabcls="tab-current"><script>currSelectTab="tab_person";</script></#if>
	<td width="100" class="${tabcls}" id="tab_person">
       <img src="${skin}/icon/unregister.gif"  align="absmiddle"> 
 	   <a href="#" onClick="setCurrSelectTab('tab_person');top.menuFrame.loadMenu('person')">个人信息</a> 
    </td>
</#if>
<#if sysmgr=true>
	<#assign tabcls="tab-inactive"> 
	<#if first=true><#assign first = false><#assign tabcls="tab-current"><script>currSelectTab="tab_sys";</script></#if>
	<td width="100" class="${tabcls}" id="tab_sys">
  	  <img src="${skin}/icon/maintenance.gif"  align="absmiddle"> 
	  <a href="#" onClick="setCurrSelectTab('tab_sys');top.menuFrame.loadMenu('sys')">系统管理</a> 
    </td>
</#if>
		    </tr>
		</table>
		</td>
	</tr>
	<tr>
		<td height="5" colspan="5" background="${skin}/images/bg_topnav_1.gif"></td>
	</tr>
</table> 
<table width="100%" border="0" b class="status" cellpadding="0" cellspacing="0">
	<tr>
		<td width="19" height="26">&nbsp;</td>
		<td width="152"><select id="select_lang" name="select_lang">
                <option value="5201">${sitename?default("")}</option>
			</select>
        </td>
		<td width="32" align="center"><img src="${skin}/images/line_4.gif" width="2" height="20" /></td>
		<td width="626" class="info">
		<div id="currentLoc" name="currentLoc"> 
		当前位置：/站点管理/本站点频道 
		</div>
		</td>
	</tr>
</table>
</body>
</html>
